//
// Created by 17775 on 2024/12/12.
//

#ifndef RAYCI_DIVERGENCE_RESULT_H
#define RAYCI_DIVERGENCE_RESULT_H

#include <QWidget>
#include <QTreeWidgetItem>


QT_BEGIN_NAMESPACE
namespace Ui { class Divergence_Result; }
QT_END_NAMESPACE

class Divergence_Result : public QWidget {
Q_OBJECT

public:
    explicit Divergence_Result(QWidget *parent = nullptr);

    ~Divergence_Result() override;
    void updateResult(int dCount, double dDivergenceUX, double dDivergenceUY, double dZeroPointUX, double dZeroPointUY,
                      double dDivergenceUncertaintyUX, double dDivergenceUncertaintyUY, double dZeroPointUncertaintyUX, double dZeroPointUncertaintyUY);

private:
    Ui::Divergence_Result *ui;
    QTreeWidgetItem* topItem = nullptr;
    QTreeWidgetItem* topOne = nullptr;
    QTreeWidgetItem* countItem = nullptr;
    QTreeWidgetItem* DivergenceXItem = nullptr;
    QTreeWidgetItem* DivergenceYItem = nullptr;
    QTreeWidgetItem* ZeroPointXItem = nullptr;
    QTreeWidgetItem* ZeroPointYItem = nullptr;
};


#endif //RAYCI_DIVERGENCE_RESULT_H
